public class Demo {
    public static void main(String[] args) {
        REDTree redTree = new REDTree();
        int[] array = {4,2,6,1,3,5,15,7,16,14};
        for(int i = 0;i < array.length;i++) {
            redTree.insert(array[i]);
        }
        redTree.inorder(redTree.root);
        System.out.println();
        System.out.println(redTree.isREDTree(redTree.root));
    }
}
